<%@page import="bean.SemiDTO"%>
<%@page import="bean.JoinVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../css/join.css">
<script type="text/javascript" src="../js/join.js"></script>

</head>
<body>
<%
JoinVo vo=new JoinVo();
vo.setMid((String)session.getAttribute("sessionMid"));
SemiDTO dto= new SemiDTO();
dto.setVo(vo);
JoinVo v = dto.SelectOne(); 

%>
	<form id="join_form" method="post" name = "modimodi"
		action="join_main.jsp?inpage=../modify_result.jsp"
		onSubmit="return mainSubmit(0);">
		<input type="hidden" name="mid" value="<%=v.getMid()%>">
		<div class="row_group">
			<div id="idDiv" class="join_row">
				<span class="ps_box int_id" align="center" > <input type="text" id="mid"
					name="mid" value="<%=v.getMid() %>" maxlength="12" placeholder="아이디" class="int" disabled="disabled">
				</span>
			</div>
			<div id="pswd1Div" class="join_row">
				<span id="pswd1Img" class="ps_box int_pass" align="center" > 
				<input type="password" id="pwd" name="pwd" maxlength="16" placeholder="비밀번호" class="int"> 
				</span>
			</div>
			<div id="pswd2Div" class="join_row">
				<span id="pswd2Img" class="ps_box int_pass_check" align="center" > 
				<input type="password" id="pwd2" name="pwd2" maxlength="16" placeholder="비밀번호 재확인" class="int"> 
				</span>

			</div>
		</div>

		<div class="row_group">
			<div id="nmDiv" class="join_row">
				<span class="ps_box"> <input type="text" id="irum"
					name="irum" maxlength="40" value="<%=v.getIrum() %>"
					placeholder="이름" class="int"> 
				</span>
			</div>
			<div id="genderDiv" class="join_row join_sex">
				<span class="row_title"> 성별</span> <span class="sex"> <span
					class="jender"><input type="radio" id="man" name="gender"
						value="m" /><label id="manLb" for="man">남자
					</label></span><span class="jender"><input type="radio" id="woman"
						name="gender" value="f"/><label
						id="womanLb" for="woman">여자 </label></span>
				</span>
			</div>
			<div id="birthdayDiv" class="join_row join_birthday">
				<div class="join_birth">
					<div class="bir_yy">
						<span class="ps_box"> 
						<input type="date" id="birth" name='birth'maxlength="4" 
						value=""placeholder="생년" class="int" value="<%=v.getBirth() %>">
							
						</span>
					</div>
				</div>
			</div>
			<div id="emailDiv" class="join_row join_email">
				<span class="ps_box int_email"> <input type="text" id="email"
					name="email" maxlength="100" value="<%=v.getEmail() %>"
					placeholder="이메일" class="int"> 
				</span>
				
			</div>
			<div id="phone" class="join_row join_birthday" name='phone'>
				<div class="join_birth">
					<div class="bir_mm">
						<span class="ps_box"> <select id="phone" title="010" name="phone1"
							class="sel" onChange="checkBirthday('check')" value="<%=v.getPhone1() %>">
								<option value="010">010</option>
								<option value="011">011</option>
								<option value="016">016</option>

						</select>
						</span>
					</div>
					<span class="cell">|</span>
					<div class="bir_mm">
						<span class="ps_box"> <input type="text" id="phone" name="phone2"
							maxlength="4" value="<%=v.getPhone2() %>" placeholder="" class="int"> 
						</span>
					</div>
					<span class="cell">|</span>
					<div class=" bir_dd">
						<span class="ps_box"> <input type="text" id="phone" name="phone3"
							maxlength="4" value="<%=v.getPhone3() %>" placeholder="" class="int"> 
						</span>
					</div>
				</div>

			</div>
			<div id="jobDiv" class="join_row join_email">
				<span class="ps_box int_email"> <input type="text" id="job"
					name="job" maxlength="100" value="<%=v.getJob()%>"
					placeholder="직업" class="int">
				</span>
			</div>
		</div>
		<div class="row_group">
			<span class="btn_join2"> 
				<input type="button" title="수정" alt="수정" value="수정" id="modi" onclick="moid()" >
			</span>
			<span class="btn_join4"> 
				<input type="button" title="취소" alt="취소" value="취소" id="cancel" onclick="backk()">
			</span>
			
			<span class="btn_join3"> 
				<input type="button" title="탈퇴" alt="탈퇴" value="탈퇴" id="delete" onclick="delet()">
			</span>
		</div>

	</form>
<script type="text/javascript"></script>
</body>
</html>